package demo8;

public class test5 {
    public static void main(String[] args) {


        String s = "小诗诗asfsadfsafsafas小丹丹asfsadfsafsafas小慧慧";
//        String result = s.replaceAll("[\\w&&[^_]]+","vs");
//        System.out.println(result);

        String[] arr = s.split("[\\w&&[^_]]+");
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
